package flex.cc.order.manage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import flex.cc.order.manage.dto.order.OrderPolicyEntity;
import flex.cc.order.manage.dto.order.OrderRescueEntity;
import flex.cc.order.manage.dto.vo.RescueInforVo;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author wkangle
 * @className OrderRescueDao
 * @description 服务单待救援信息表dao
 * @time 2021-09-06 15:45:04
 */
@Mapper
@Repository
public interface OrderRescueDao extends BaseMapper<OrderRescueEntity> {

    /**
     * @description 添加一条记录
     * @param orderRescueEntity
     * @return
     * @author wkangle
     * @time 2021/09/08 0008 8:58
     * @exception/throws
     */
    int insert(OrderRescueEntity orderRescueEntity);

    /**
     * @description 根据查询条件查询服务单待救援信息
     * @param params 查询条件
     * @return
     * @author wkangle
     * @time 2021-09-08 16:18:51
     * @exception/throws
     */
    OrderRescueEntity getOneByParams(Map<String, Object> params);

    /**
	 *
	 * @author WANGCONG
	 * 2021年9月9日上午10:59:32
	 * @desc 根据救援单号查询救援信息
	 */
	RescueInforVo queryRescueInforByOrderNo(String orderNo);

	/**
	 * @description 更新
	 * @param orderRescueEntity
	 * @return
	 * @author wkangle
	 * @time 2021-09-12 15:19:36
	 * @exception/throws
	 */
	int update(OrderRescueEntity orderRescueEntity);

}
